package com.wxzz.elearing.pay.service.openfeign;

import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.math.BigDecimal;
import java.util.Map;

@FeignClient("2127-wxzz-livetelecast-application")
public interface IWxLivetelecastApiFeign {

    /**
     * 支付成功确认
     *
     * @param userOrderId
     * @return
     */
    @RequestMapping(value = "/wx-livetelecast-api/handlerNotifyLive/{userOrderId}", method = RequestMethod.POST)
    ReturnVO<String> handlerNotifyLive(@PathVariable Long userOrderId);

    /**
     * 支付回调修改打赏金额
     *
     * @return
     */
    @RequestMapping(value = "/wx-livetelecast-api/updateRewardAmount", method = RequestMethod.POST,consumes = MediaType.APPLICATION_JSON_VALUE)
    ReturnVO<Long> updateRewardAmount(@RequestBody Map<String, String> map);

}
